﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8" />
    <title>LoginMvc: MyView Class Reference</title>
    <link href="/Content/Help.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/tabs.css" rel="stylesheet" type="text/css" />
    <link href="/Content/css/doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <div id="header">
        <img id="logo" alt="StateForge" src="/Content/Images/StateForgeLogo.png" />
        <div id="title">
            <h1>
                Examples using state machines generated by StateBuilderCpp
            </h1>
            <h3>
                LoginMvc: MyView Class Reference
            </h3>
        </div>
        <div id="menucontainer">
            <ul id="menu">
                <li><a href="/">Home</a></li>
                <li><a href="/Home/Download">Downloads</a></li>
                <li><a href="/Help/state-machine-tools.aspx">Help</a></li>
                <li><a href="/Home/Faq">F.A.Q</a></li>
                <li><a href="/Home/About">Contact us</a></li>
            </ul>
        </div>
    </div>
<!-- Generated by Doxygen 1.7.4 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-slots">Public Slots</a> &#124;
<a href="#signals">Signals</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">MyView Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="MyView" -->
<p><code>#include &lt;<a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>&gt;</code></p>

<p><a href="class_my_view-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-slots"></a>
Public Slots</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a0c1ad0e7d8aee46a472509772b9ac561">notifyLogin</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a6988b0a9700e68a9af1e61f516215341">notifyTimeout</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a7c454836b0745929963cfa24a71b9022">notifyWelcome</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a7d548adc19f00400dd46c31bb7ea04cc">notifyError</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#ac797918e0f921e9fa6adaa98dd8877e9">notifyCancel</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a1e10251d3af7858190a284106194e7c5">notifyHello</a> (const QString &amp;name)</td></tr>
<tr><td colspan="2"><h2><a name="signals"></a>
Signals</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a135de69fbe242fb530997c9d8e0993c6">loginIntent</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a289cd45f6704274dd9686db724881159">logoutIntent</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a70eb3878d4d80b62e703852a40026c20">cancelIntent</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a8fc2570e040a4c4d7488e61147cd3321">contIntent</a> ()</td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#abe0a723b28a3587993efcb70960acf21">MyView</a> (QWidget *o=NULL)</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">QString&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_my_view.html#a35eb74bc962dbe7678e8f6407c81c039">welcomeText</a></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00090">90</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="abe0a723b28a3587993efcb70960acf21"></a><!-- doxytag: member="MyView::MyView" ref="abe0a723b28a3587993efcb70960acf21" args="(QWidget *o=NULL)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">MyView::MyView </td>
          <td>(</td>
          <td class="paramtype">QWidget *&#160;</td>
          <td class="paramname"><em>o</em> = <code>NULL</code></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00095">95</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>
<div class="fragment"><pre class="fragment">                              : QFrame(o)
    {
        setupUi(<span class="keyword">this</span>);
        connect(loginButton,SIGNAL(clicked()),<span class="keyword">this</span>,SIGNAL(<a class="code" href="class_my_view.html#a135de69fbe242fb530997c9d8e0993c6">loginIntent</a>()));
        connect(logoutButton,SIGNAL(clicked()),<span class="keyword">this</span>,SIGNAL(<a class="code" href="class_my_view.html#a289cd45f6704274dd9686db724881159">logoutIntent</a>()));
        connect(cancelButton,SIGNAL(clicked()),<span class="keyword">this</span>,SIGNAL(<a class="code" href="class_my_view.html#a70eb3878d4d80b62e703852a40026c20">cancelIntent</a>()));
    }
</pre></div>
</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a70eb3878d4d80b62e703852a40026c20"></a><!-- doxytag: member="MyView::cancelIntent" ref="a70eb3878d4d80b62e703852a40026c20" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::cancelIntent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a8fc2570e040a4c4d7488e61147cd3321"></a><!-- doxytag: member="MyView::contIntent" ref="a8fc2570e040a4c4d7488e61147cd3321" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::contIntent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a135de69fbe242fb530997c9d8e0993c6"></a><!-- doxytag: member="MyView::loginIntent" ref="a135de69fbe242fb530997c9d8e0993c6" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::loginIntent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="a289cd45f6704274dd9686db724881159"></a><!-- doxytag: member="MyView::logoutIntent" ref="a289cd45f6704274dd9686db724881159" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::logoutIntent </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [signal]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<a class="anchor" id="ac797918e0f921e9fa6adaa98dd8877e9"></a><!-- doxytag: member="MyView::notifyCancel" ref="ac797918e0f921e9fa6adaa98dd8877e9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::notifyCancel </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00130">130</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>
<div class="fragment"><pre class="fragment">    {
        QLOG_INFO();
        QMessageBox::information(<span class="keyword">this</span>,<span class="stringliteral">&quot;Cancel&quot;</span>,<span class="stringliteral">&quot;You have cancelled&quot;</span>);
        emit <a class="code" href="class_my_view.html#a8fc2570e040a4c4d7488e61147cd3321">contIntent</a>();
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a7d548adc19f00400dd46c31bb7ea04cc"></a><!-- doxytag: member="MyView::notifyError" ref="a7d548adc19f00400dd46c31bb7ea04cc" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::notifyError </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00122">122</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>
<div class="fragment"><pre class="fragment">    {
        QLOG_INFO();
        QMessageBox::warning(<span class="keyword">this</span>,<span class="stringliteral">&quot;Not Logged in&quot;</span>,<span class="stringliteral">&quot;Login has failed...&quot;</span>);
        emit <a class="code" href="class_my_view.html#a8fc2570e040a4c4d7488e61147cd3321">contIntent</a>();
        QLOG_INFO() &lt;&lt; <span class="stringliteral">&quot;done&quot;</span>;
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a1e10251d3af7858190a284106194e7c5"></a><!-- doxytag: member="MyView::notifyHello" ref="a1e10251d3af7858190a284106194e7c5" args="(const QString &amp;name)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::notifyHello </td>
          <td>(</td>
          <td class="paramtype">const QString &amp;&#160;</td>
          <td class="paramname"><em>name</em></td><td>)</td>
          <td><code> [inline, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00136">136</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>
<div class="fragment"><pre class="fragment">    {
        QLOG_INFO() &lt;&lt; name;
        QMessageBox::information(<span class="keyword">this</span>,<span class="stringliteral">&quot;Welcome&quot;</span>,QString(<span class="stringliteral">&quot;Hello &quot;</span>) + name);
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a0c1ad0e7d8aee46a472509772b9ac561"></a><!-- doxytag: member="MyView::notifyLogin" ref="a0c1ad0e7d8aee46a472509772b9ac561" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::notifyLogin </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00105">105</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>
<div class="fragment"><pre class="fragment">    {
        QLOG_INFO();
        QMessageBox::information(<span class="keyword">this</span>,<span class="stringliteral">&quot;Logged In&quot;</span>,<span class="stringliteral">&quot;You are now logged in!&quot;</span>);
        emit <a class="code" href="class_my_view.html#a8fc2570e040a4c4d7488e61147cd3321">contIntent</a>();
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a6988b0a9700e68a9af1e61f516215341"></a><!-- doxytag: member="MyView::notifyTimeout" ref="a6988b0a9700e68a9af1e61f516215341" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::notifyTimeout </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00111">111</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>
<div class="fragment"><pre class="fragment">    {
        QLOG_INFO();
        QMessageBox::information(<span class="keyword">this</span>,<span class="stringliteral">&quot;Timeout...&quot;</span>,<span class="stringliteral">&quot;Sorry, login has timed out&quot;</span>);
        emit <a class="code" href="class_my_view.html#a8fc2570e040a4c4d7488e61147cd3321">contIntent</a>();
    }
</pre></div>
</div>
</div>
<a class="anchor" id="a7c454836b0745929963cfa24a71b9022"></a><!-- doxytag: member="MyView::notifyWelcome" ref="a7c454836b0745929963cfa24a71b9022" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void MyView::notifyWelcome </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [inline, slot]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00117">117</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>
<div class="fragment"><pre class="fragment">    {
        QLOG_INFO();
        QMessageBox::information(<span class="keyword">this</span>,<span class="stringliteral">&quot;Welcome!&quot;</span>,<a class="code" href="class_my_view.html#a35eb74bc962dbe7678e8f6407c81c039">welcomeText</a>);
    }
</pre></div>
</div>
</div>
<hr/><h2>Member Data Documentation</h2>
<a class="anchor" id="a35eb74bc962dbe7678e8f6407c81c039"></a><!-- doxytag: member="MyView::welcomeText" ref="a35eb74bc962dbe7678e8f6407c81c039" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">QString <a class="el" href="class_my_view.html#a35eb74bc962dbe7678e8f6407c81c039">MyView::welcomeText</a></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definition at line <a class="el" href="_login_mvc_8h_source.html#l00094">94</a> of file <a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_login_mvc_8h_source.html">LoginMvc.h</a></li>
</ul>
</div>
﻿<div id="footer">
    <hr />
    <p>
        Copyright &copy; 2011 StateForge.</p>
    <hr />
</div>
</body> </html> 
